package cn.entergx.smallmengplan.network

import cn.entergx.smallmengplan.LoveEvent
import cn.entergx.yztx.bean.page.SpringPage
import retrofit2.Call
import retrofit2.http.*

interface IpService {

    @GET("get")
    fun get(@Query("page") page: Int,@Query("size") size: Int): Call<SpringPage<LoveEvent>>

    @POST("save")
    fun save(
        @Query("content") content: String,
        @Query("note") note: String,
        @Query("completed") completed: Int
    ): Call<Int>

    @POST("update")
    fun update(
        @Query("id") id: Int,
        @Query("content") content: String,
        @Query("note") note: String,
        @Query("completed") completed: Int
    ): Call<Int>

    @GET("delete")
    fun delete(
        @Query("id") id: Int
    ): Call<Int>
}